package com.graduate.daydayup.adpter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.graduate.daydayup.R
import com.graduate.daydayup.http.HotBean

class HotNewsAdapter(layoutResId: Int) :BaseQuickAdapter<HotBean,BaseViewHolder>(layoutResId) {
    override fun convert(holder: BaseViewHolder, item: HotBean) {
        holder.setText(R.id.tv_no,(holder.adapterPosition+1).toString()+"、")
        holder.setText(R.id.hotword,item.hotword)
        holder.setText(R.id.hotwordnum,item.hotwordnum)
    }
}